﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

// 基类定义
namespace Library
{
    public abstract class BaseLibrarySystem : CommonService
    {
        public virtual void AddBookMenu() { }

        public virtual void DeleteBookMenu() { }

        public virtual void BorrowBookMenu() { }

        public virtual void ReturnBookMenu() { }

        public virtual void QueryBookMenu() { }

        public virtual void QueryBorrowedBookMenu() { }

        public abstract void DisplayInventory();

        protected abstract void AddBook(string title, string author, int quantity);

        protected abstract bool BorrowBook(string title, int quantity);

        protected abstract void DeleBook(string title);

        protected abstract void QueryBook(string? title = null, string? author = null);

        protected abstract bool ReturnBook(string title, int quantity);

        protected abstract void QueryBorrowedBook(User user);
    }
}